翻訳と辞書
Words near each other
・ メ=ゾシ
・ メ=ゾシ県
・ メ~テレ
・ メ~テレNEWS
・ メ~テレカフェ
・ メ~テレニュース
・ メ~テレワイドスーパーJチャンネル
・ メ~テレ劇場
・ メ~テレ日曜朝7時枠のアニメ
・ メ~テレ時代劇
・ モ
・ モ'・ベター・ブルース
・ モア
・ モア (たばこ)
・ モア (アルバム)
・ モア (曖昧さ回避)
・ モア (曲)
・ モア☆ゴル
・ モアイ
・ モアイ (グラディウス)


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

モジュール:Suppress categories : ミニ英和和英辞書
モジュール:Suppress categories[ちょうおん]
=====================================
〔語彙分解〕的な部分一致の検索結果は以下の通りです。

ジュール : [じゅーる]
 【名詞】 1. joule 2. (n) joule
: [ちょうおん]
 (n) long vowel mark (usually only used in katakana)

モジュール:Suppress categories : ウィキペディア日本語版
モジュール:Suppress categories[ちょうおん]
-- This is a simple module to strip categories from wikitext. It does
-- not support nested links or magic words like , etc. Even so,
-- it should still handle most categories.
local p =
-- Detects if a category link is valid or not. If it is valid,
-- the function returns the blank string. If not, the input
-- is returned with no changes.
local function processCategory( all, submatch )
local beforePipe = mw.ustring.match( submatch, '^(.-)
*|
*.-$' )
beforePipe = beforePipe or submatch
if mw.ustring.match( beforePipe, '' ) then
return all
else
return ''
end
end
-- Preprocess the content if we aren't being called from #invoke,
-- and pass it to gsub to remove valid category links.
local function suppress( content, isPreprocessed )
if not isPreprocessed then
content = mw.getCurrentFrame():preprocess( content )
end
content = mw.ustring.gsub(
content,
'(%
*:
*(.-)
*%]%])',
processCategory
)
return content
end
-- Get the content to suppress categories from, and find
-- whether the content has already been preprocessed. (If the
-- module is called from #invoke, it has been preprocessed already.)
function p.main( frame )
local content, isPreprocessed
if frame == mw.getCurrentFrame() then
content = frame:getParent().args
if frame.args then
content = frame.args
end
isPreprocessed = true
else
content = frame
isPreprocessed = false
end
return suppress( content, isPreprocessed )
end
return p


抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「モジュール:Suppress categories」の詳細全文を読む




スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.